package com.luo.chengrui.module.sa.controller.admin.role.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 角色菜单权限 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class PermissionBaseVO {

    @Schema(description = "角色ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9505")
    @NotNull(message = "角色ID不能为空")
    private String roleId;

    @Schema(description = "功能ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30393")
    @NotNull(message = "功能ID不能为空")
    private Long menuId;

    @Schema(description = "授权类别", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "授权类别不能为空")
    private String permissionKind;

    @Schema(description = "版本号")
    private Long version;

}
